import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-com-step-a',
  templateUrl: './com-step-a.component.html',
  styleUrls: ['./com-step-a.component.scss']
})
export class ComStepAComponent implements OnInit {

  constructor() { }


  get tableHeader() {
    return ['组合1', '组合2', '组合3', '组合4']
  }
  data = [
    {
      label1: '环境',
      label2: '人体健康',
      v1: 18,
      t1: 18,
      v2: 2.41,
      t2: 2.41,
      v3: 0.93,
      t3: 0.93,
      v4: 0.44,
      t4: 0.44,
      getParams: () => {
        return {
          aa: this.data[0].v1,
          ab: this.data[0].v2,
          ac: this.data[0].v3,
          ad: this.data[0].v4,
        }
      }
    },
    {
      label1: '环境',
      label2: '生态系统',
      v1: 1.2,
      t1: 1.2,
      v2: 0.19,
      t2: 0.19,
      v3: 0.06,
      t3: 0.06,
      v4: 0.03,
      t4: 0.03,
      getParams: () => {
        return {
          ae: this.data[1].v1,
          af: this.data[1].v2,
          ag: this.data[1].v3,
          ah: this.data[1].v4,
        }
      }
    },
    {
      label1: '环境',
      label2: '资源消耗',
      v1: 0.069,
      t1: 0.069,
      v2: 0.021,
      t2: 0.021,
      v3: 0.005,
      t3: 0.005,
      v4: 0.004,
      t4: 0.004,
      getParams: () => {
        return {
          ai: this.data[2].v1,
          aj: this.data[2].v2,
          ak: this.data[2].v3,
          al: this.data[2].v4,
        }
      }
    },
    {
      label1: '经济',
      label2: '成本',
      v1: 1,
      t1: '1-5',
      v2: 2,
      t2: '1-5',
      v3: 3,
      t3: '1-5',
      v4: 4,
      t4: '1-5',
      getParams: () => {
        return {
          am: this.data[3].v1,
          an: this.data[3].v2,
          ao: this.data[3].v3,
          ap: this.data[3].v4,
        }
      }

    },
    {
      label1: '经济',
      label2: '效益',
      v1: 4,
      t1: '1-5',
      v2: 3,
      t2: '1-5',
      v3: 2,
      t3: '1-5',
      v4: 1,
      t4: '1-5',

      getParams: () => {
        return {
          aq: this.data[4].v1,
          ar: this.data[4].v2,
          as: this.data[4].v3,
          at: this.data[4].v4,
        }
      }
    },
    {
      label1: '社会',
      label2: '公众接受度',
      v1: 1,
      t1: '1-5',
      v2: 2,
      t2: '1-5',
      v3: 3,
      t3: '1-5',
      v4: 4,
      t4: '1-5',
      getParams: () => {
        return {
          au: this.data[5].v1,
          av: this.data[5].v2,
          aw: this.data[5].v3,
          ax: this.data[5].v4,
        }
      }
    },
    {
      label1: '社会',
      label2: '社会影响',
      v1: 4,
      t1: '1-5',
      v2: 3,
      t2: '1-5',
      v3: 2,
      t3: '1-5',
      v4: 1,
      t4: '1-5',
      getParams: () => {
        return {
          ay: this.data[6].v1,
          az: this.data[6].v2,
          ba: this.data[6].v3,
          bb: this.data[6].v4,
        }
      }
    },
    {
      label1: '环境',
      label2: '人体健康',
      v1: 1,
      t1: '1-5',
      v2: 2,
      t2: '1-5',
      v3: 3,
      t3: '1-5',
      v4: 4,
      t4: '1-5',
      getParams: () => {
        return {
          bc: this.data[7].v1,
          bd: this.data[7].v2,
          be: this.data[7].v3,
          bf: this.data[7].v4,
        }
      }
    },
    {
      label1: '时间',
      label2: '修复时间',
      v1: 4,
      t1: '1-5',
      v2: 3,
      t2: '1-5',
      v3: 2,
      t3: '1-5',
      v4: 1,
      t4: '1-5',
      getParams: () => {
        return {
          bg: this.data[8].v1,
          bh: this.data[8].v2,
          bi: this.data[8].v3,
          bj: this.data[8].v4,
        }
      }
    }
  ]

  ngOnInit() {
  }

}
